<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>${appname}</title>
<%@ include file="/WEB-INF/view/common/css_js_ace.jsp"%>
<%@ include file="/WEB-INF/view/common/css_js_ztree.jsp"%>
<script type="text/javascript">
	var setting = {
		view : {
			selectedMulti : false
		},
		check : {
			enable : false
		},
		data : {
			simpleData : {
				enable : true
			}
		}
	};
	var zNodes = ${resourceData};
	var zTree;
	$(document).ready(function() {
		$.fn.zTree.init($("#zTree"), setting, zNodes);
		$("#div1").css({
			"left" : $("#tab1").width() + 60,
			"position" : "absolute",
			"width" : "350px",
			"float" : "right"
		});
	});
</script>
</head>
<body>
	<div class="main-container" id="main-container">
		<div class="main-container-inner">
			<%-- <%@ include file="/WEB-INF/view/common/topbar.jsp"%> --%>
			<div class="main-content" style="margin-left: 0px;">
				<div class="breadcrumbs" id="breadcrumbs">
					<ul class="breadcrumb" style="margin-left: 4px;">
						<li><i class="icon-home home-icon"></i>首页</li>
						<li>通用模块</li>
						<li class="active">权限管理</li>
					</ul>
				</div>
				<div class="page-content">
					<div class="widget-box">
						<div class="widget-header header-color-white">
							<div class="widget-toolbar no-border">
								<a class="btn btn-primary btn-xs"
									href="javascript:history.go(-1)"><i
									class="icon-arrow-left bigger-110"></i> 返回&nbsp;&nbsp;</a> <a
									href="#" data-action="collapse"> <i class="icon-chevron-up"></i>
								</a>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-5">
							<div class="widget-box"  style="border-bottom:1px solid #FFFFFF;">
								<div class="profile-user-info profile-user-info-striped">
									<div class="profile-info-row">
										<div class="profile-info-name">权限名称</div>
										<div class="profile-info-value">
											<span class="editable">${authRight.rightName}&nbsp;</span>
										</div>
									</div>
									<div class="profile-info-row">
										<div class="profile-info-name">权限类型</div>
										<div class="profile-info-value">
											<span class="editable">${cm:ctname('authusertype',authRight.type)}&nbsp;</span>
										</div>
									</div>
									<div class="profile-info-row">
										<div class="profile-info-name">状态</div>
										<div class="profile-info-value">
											<span class="editable">${cm:ctname('entity_status',authRight.status)}&nbsp;</span>
										</div>
									</div>
									<div class="profile-info-row">
										<div class="profile-info-name">描述</div>
										<div class="profile-info-value">
											<span class="editable">${authRight.remark}&nbsp;</span>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="col-xs-7">
							<div class="widget-box">
								<div class="widget-header widget-header-flat">
									<h5 class="smaller lighter">拥有的资源权限</h5>
								</div>
								<div class="widget-body">
									<div class="widget-main">
										<div class="row mg-top12"
											style="overflow:auto; height: 400px; border-top:1px solid #CCCCCC;">
											<div id="zTree" class="ztree"></div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
